<template>
	<view>
		<!-- 子组件接受到的 -->
		<p> 子组件接收的父组件的内容{{msg}}</p>
		
		<!-- 子传父 -->
		<button  @click="goDecorate">子传父</button>
	</view>
</template>

<script>
		
	export default {
		props:['msg'],
		name:"son",
		data() {
			return {
				user:"子传父的内容"
			};
		},
		methods:{
			goDecorate(){
				this.$emit('sonChange',this.user)
			}
		}
	}
</script>

<style lang="scss">

</style>